package com.xw.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

/**
 * @author: xw
 * @create: 2023/5/11 14:55
 * @description: 创建stream的另外的方式
 */
public class Code02_CreateStream01 {

    public static void main(String[] args) {
        List<String> list = new ArrayList();
        list.add("万");
        list.add("猫");
        list.add("学");
        list.add("社");
        Stream<String> stream = list.stream();
    }
}
